<template>
  <div>
    <div>
      <h4>其他</h4>
      <el-row type="flex" justify="space-between">
        <el-col :span="6">
          <div>
            <span>行动方式 </span>
            <el-select v-model="pgForm.action" placeholder="请选择" style="width: 50%;">
              <el-option
                v-for="item in options1"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="6">
          <div>
            <span>意识状态 </span>
            <el-select v-model="pgForm.awareness" placeholder="请选择" style="width: 50%;">
              <el-option
                v-for="item in options2"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="6">
          <div>
            <span>配合程度 </span>
            <el-select v-model="pgForm.cooperate" placeholder="请选择" style="width: 50%;">
              <el-option
                v-for="item in options3"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="6">
          <div>
            <span>理解能力 </span>
            <el-select v-model="pgForm.understand" placeholder="请选择" style="width: 50%;">
              <el-option
                v-for="item in options4"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="6">
          <div>
            <span>心理状态 </span>
            <el-select v-model="pgForm.mind" placeholder="请选择" style="width: 50%;">
              <el-option
                v-for="item in options5"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="6">
          <div>
            <span>助手 </span>
            <el-select v-model="pgForm.assistant" placeholder="请选择" style="width: 50%;">
              <el-option
                v-for="item in options6"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="6">
          <div>
            <span>家人态度 </span>
            <el-select v-model="pgForm.family" placeholder="请选择" style="width: 50%;">
              <el-option
                v-for="item in options3"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="6">
          <div>
            <span>居住环境 </span>
            <el-select v-model="pgForm.environment" placeholder="请选择" style="width: 50%;">
              <el-option
                v-for="item in options7"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
        <el-col :span="6">
          <div>
            <span>经济状况 </span>
            <el-select v-model="pgForm.economic" placeholder="请选择" style="width: 50%;">
              <el-option
                v-for="item in options8"
                :key="item.value"
                :label="item.label"
                :value="item.value">
              </el-option>
            </el-select>
          </div>
        </el-col>
      </el-row>
    </div>
  </div>
</template>

<script>
export default {
  name: "other",
  title:"其他",
  created() {
    if(this.istrans){
      this.pgForm=this.fromdata
    }
  },
  props: {
    fromdata:{},
    istrans:false,
  },
  data(){
    return{
      pgForm:{
        action:'',
        awareness:'',
        cooperate:'',
        understand:'',
        mind:'',
        assistant:'',
        family:'',
        environment:'',
        economic:'',
      },
      options1:[{
        value:'卧床',
        label:'卧床'
      },{
        value:'轮椅',
        label:'轮椅'
      },{
        value:'拐杖',
        label:'拐杖'
      },{
        value:'独立',
        label:'独立'
      }],
      options2:[{
        value:'昏迷',
        label:'昏迷'
      },{
        value:'嗜睡',
        label:'嗜睡'
      },{
        value:'正常',
        label:'正常'
      }],
      options3:[{
          value:'消极',
          label:'消极'
        },{
          value:'一般',
          label:'一般'
        },{
          value:'积极',
          label:'积极'
        }],
      options4:[{
        value:'良好',
        label:'良好'
      },{
        value:'一般',
        label:'一般'
      },{
        value:'差',
        label:'差'
      }],
      options5:[{
        value:'焦虑',
        label:'焦虑'
      },{
        value:'抑郁',
        label:'抑郁'
      },{
        value:'正常',
        label:'正常'
      }],
      options6:[{
        value:'独居',
        label:'独居'
      },{
        value:'一个',
        label:'一个'
      },{
        value:'两个',
        label:'两个'
      }],
      options7:[{
        value:'电梯',
        label:'电梯'
      },{
        value:'楼梯',
        label:'楼梯'
      },{
        value:'其他',
        label:'其他'
      }],
      options8:[{
        value:'差',
        label:'差'
      },{
        value:'一般',
        label:'一般'
      },{
        value:'好',
        label:'好'
      }],
    }
  }
}
</script>

<style scoped>
.el-row{
  margin: 10px 0;
  padding: 20px 20px;
  background-color: #f9f9f9;
  flex-wrap: wrap;
  flex-direction: row;
}

.el-col {
  margin: 10px 0;
}
</style>
